package org.example.javawebday1.service;

import org.example.javawebday1.pojo.Dept;
import org.example.javawebday1.pojo.Result;

import java.util.List;

public interface DeptsService {

    Result getAllDepts();

    Result deleteDeptById(Integer id);

    Result addDept(Dept dept);

    Result addDepts(List<Dept> depts);

    Result getDeptById(Integer id);

    Result updateDept(Dept dept);
}
